import Time from './time'
import taskTag from "./taskTag"
import genKey from '../utility/genKey'
import { keyLen } from '../utility/constants'

export default class Task{
    tag: taskTag
    //in minutes
    duration: number
    start: Time
    name: string
    key: string
    constructor(start: Time, duration: number, name: string, tag: taskTag, key: string = genKey(keyLen)){
        this.start = start
        this.duration = duration
        this.name = name
        this.tag = tag
        this.key = key
    }
}